package com.java.module.chat.domain;

import com.java.common.lang.annotation.FileData;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.java.common.lang.annotation.Excel;
import com.java.common.lang.domain.BaseEntity;

/**
 * 聊天模块：群成员对象 chat_group_user
 * 
 * @author Administrator
 * @date 2023-02-16
 */
@FileData
public class GroupUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 群聊id */
    @Excel(name = "群聊id")
    private Long gid;

    /** 用户UID */
    @Excel(name = "用户UID")
    private Long uid;

    /** 删除标志（0默认 1删除） */
    private Integer delFlag;

    /** 禁言  1禁言 0未禁言 */
    private Integer estoppel;

    public Integer getEstoppel() {
        return estoppel;
    }

    public void setEstoppel(Integer estoppel) {
        this.estoppel = estoppel;
    }

    /** 身份 0成员 1圈主 */
    @Excel(name = "身份 0成员 1圈主")
    private Integer identity;

    private String nickname;

    private String idNumber;

    /** 头像地址 */
    @FileData
    private String avatar;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGid(Long gid) 
    {
        this.gid = gid;
    }

    public Long getGid() 
    {
        return gid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setIdentity(Integer identity) 
    {
        this.identity = identity;
    }

    public Integer getIdentity() 
    {
        return identity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gid", getGid())
            .append("uid", getUid())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("identity", getIdentity())
            .toString();
    }
}
